/**
 * Copyright (C), 2015-2019, XXX有限公司
 * FileName: BuilderClient
 * Author:   zhouheng
 * Date:     2019/5/1 14:06
 * Description: 建造者模式客户端
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.zhouh.patterns.com.zhouh.create.builder;

/**
 * 〈一句话功能简述〉<br> 
 * 〈建造者模式客户端〉
 *
 * @author zhouheng
 * @create 2019/5/1
 * @since 1.0.0
 */
public class BuilderClient {
    public static void main(String[] args){
        Builder builder = new HolidayBuilder();
        builder.buildApple(100);
        builder.buildBanana(200);
        builder.buildOrange(300);

        FruitMeal fruitMeal = builder.getFruitMeal();
        fruitMeal.showItems();

        int cost = fruitMeal.cost();
        System.out.println("本套件花费："+cost);
    }

}